home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2007 September / PCWSEP07.iso / Software / Linux / Linux Mint 3.0 Light / LinuxMint-3.0-Light.iso / casper / filesystem.squashfs / lib / partman / update.d / 20detected_filesystem < prev    next >
Encoding:
Text File  |  2007-04-12  |  486 b   |  35 lines

  1. #!/bin/sh
  2.  
  3. . /lib/partman/definitions.sh
  4.  
  5. if [ -f /var/lib/partman/filesystems_detected ]; then
  6.     exit 0
  7. fi
  8.  
  9. dev=$1
  10. num=$2
  11. id=$3
  12. size=$4
  13. type=$5
  14. fs=$6
  15. path=$7
  16. name=$8
  17.  
  18. cd $dev
  19.  
  20. if [ $fs = free ]; then
  21.     rm -f $id/detected_filesystem
  22. else
  23.     open_dialog GET_FILE_SYSTEM $id
  24.     read_line filesystem
  25.     close_dialog
  26.     
  27.     if [ "$filesystem" = none ]; then
  28.     rm -f $id/detected_filesystem
  29.     else
  30.     [ -d $id ] || mkdir $id
  31.     echo "$filesystem" >$id/detected_filesystem
  32.     fi  
  33. fi
  34.  
  35.